﻿// /////////////////////////////////// 
//  
//  
//      WiseLink CCF2.0 
//     (c)Copyright 2001-2010 WiseLink Xiaojun (David) Chen 
//        Authored and Owned Xiaojun (David) Chen 
//        All Right Reserved
//  
// /////////////////////////////////// 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WiseLink.RDS.Model;
namespace WiseLink.RDS.Model.TroubleCodeRepository
{
    public class CodeData
    {
        public string CarType { get; set; }                 //车系
        public string Code { get; set; }                    //故障码
        public string UDSCode { get; set; }                 //UDS 代码
        public string CodeDescription { get; set; }         //故障解析
        public string Version { get; set; }                 //故障版本
        public string Cause { get; set; }                   //可能原因
        public string Severity { get; set; }                //严重性评级
        public string Solution { get; set; }                //常见解决办法
        public string TroubleSymptom { get; set; }          //故障现象

        public CodeData(TroubleCode code)
        {
            this.Code = code.Code;
            this.UDSCode = code.UDScode;
            this.CodeDescription = code.CodeDescription;
            this.Version = code.Version;
            this.Cause = code.Cause;
            this.Severity = code.Severity;
            this.Solution = code.Solution;
            this.TroubleSymptom = code.TroubleSymptom;
            this.CarType = code.CarType;
        }
        public override string ToString()
        {
            return string.Format("Code={0}\r\n UDSCode={1}\r\n CodeDescription={2}\r\n",
                            this.Code,
                            this.UDSCode,
                            this.CodeDescription);

        }


    }
}
